class Dog{
    public String name;
    public String color;
    public int age;

    public Dog(String name, String color, int age) {
        this.name = name;
        this.color = color;
        this.age = age;
    }

    public void eat(){
        System.out.println(name + "正在吃饭......");
    }

    public void bark(){
        System.out.println(name + "正在汪汪叫......");
    }
}

class Bird{
    public String name;
    public String color;
    public int age;

    public Bird(String name, String color, int age) {
        this.name = name;
        this.color = color;
        this.age = age;
    }

    public void eat(){
        System.out.println(name + "正在吃饭......");
    }

    public void fly(){
        System.out.println(name + "正在飞......");
    }
}

public class Test {
    public static void main(String[] args) {
        Dog dog = new Dog("德芙","白色",1);
        Bird bird = new Bird("小飞","黑色",2);

        dog.eat();
        dog.bark();
        bird.eat();
        bird.fly();

    }
}
